import nav from '../components/nav'
import banner from '../components/banner'
import index from '../components/index'
import recommend from '../components/recommend'
import aboutblog from '../components/aboutblog'
import aboutleil from '../components/aboutleil'
import left from '../components/left'
import post from '../components/post'
import footer from '../components/footer'
import scrolltop from '../components/scrolltop'

export default [
	{
		path: '/',
		components: {
			nav: nav,
			banner: banner,
			main: index,
			left: left,
			footer: footer,
			scrolltop: scrolltop
		}
	},
	{
		path: '/recommend/:categoryId',
		name: 'recommend',
		components: {
			nav: nav,
			banner: banner,
			main: recommend,
			left: left,
			footer: footer,
			scrolltop: scrolltop
		},
		props: true
	},
	{
		path: '/aboutblog',
		components: {
			nav: nav,
			banner: banner,
			main: aboutblog,
			left: left,
			footer: footer,
			scrolltop: scrolltop
		}
	},
	{
		path: '/aboutleil',
		components: {
			nav: nav,
			banner: banner,
			main: aboutleil,
			left: left,
			footer: footer,
			scrolltop: scrolltop
		}
	},
	{
		path: '/post/:postId',
		name: 'post',
		components: {
			nav: nav,
			banner: banner,
			main: post,
			left: left,
			footer: footer,
			scrolltop: scrolltop
		},
		props: true
	}
]